//
//  YWTextField.m
//  Chinese
//
//  Created by yellow on 2019/5/3.
//  Copyright © 2019 YSLC. All rights reserved.
//

#import "YWTextField.h"

@implementation YWTextField


-(void)awakeFromNib{
    
    [super awakeFromNib];
    
    NSAttributedString *attrString = [[NSAttributedString alloc] initWithString:self.placeholder attributes:@{NSForegroundColorAttributeName:[UIColor lightGrayColor],NSFontAttributeName:self.font}];
    
        self.attributedPlaceholder = attrString;
    
    self.tintColor = mainColor;// 设置光标颜色
    
//    self.textColor = [UIColor blackColor];
}

@end
